package com.android.plc.ui.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.widget.LinearLayout;

public class BaseControlView extends LinearLayout
{
	public BaseControlView(Context context, AttributeSet attrs, int res_id)
	{
		super(context, null);
		setOrientation(VERTICAL);

		LayoutInflater factory = LayoutInflater.from(context);
		factory.inflate(res_id, this);
		setGravity(Gravity.CENTER);
	}

	public BaseControlView(Context context, int res_id)
	{
		this(context, null, res_id);
	}
}
